/**
 * @Author: ls-mac
 * @Date:   2018-08-05T02:10:10+08:00
 * @Last modified by:   ls-mac
 * @Last modified time: 2019-10-07 21:53:13
 */

import React from 'react';
import { Link } from 'dva/router';
import PageHeader from '../components/PageHeader';
import styles from './PageHeaderLayout.less';

export default ({ children, wrapperClassName, top, ...restProps }) => (
  <div style={{ margin: '0' }} className={wrapperClassName}>
    {top}
    {/* <PageHeader key="pageheader" {...restProps} linkElement={Link} /> */}
    {children ? <div className={styles.content}>{children}</div> : null}
  </div>
);
